﻿/*
Plugin=CustomPlugin_BaiduOCR
Name1=百度OCR
Command1=CustomPlugin_BaiduOCR
Version=1.0
*/
CustomPlugin_BaiduOCR(){
	clipboard := ""  
	ScreenCapture()
	Sleep, 500
	keyword:=BaiduOCR()	
	Clipboard := BaiduOCR()
	GoogleTranslate :=GoogleTranslate(keyword)

	Gui Gui_baidu_danci: Font,s14 微软雅黑 c62384C q2
	Gui Gui_baidu_danci:add,Edit,x10 y10  w300 h100,%keyword%
	Gui Gui_baidu_danci:add,Edit,x10 y120 w300 h100,%GoogleTranslate%
	Gui Gui_baidu_danci:show,,百度OCR By：BoBO
	return

	Gui_baidu_danciGuiClose:
	Gui_baidu_danciGuiEscape:
	Gui Gui_baidu_danci:destroy
	clipboard := ""
	return

}
